<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->

    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->

    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="all-classes-container">
    <div class="row ui-helper-clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>我的借阅</small>
                </h1>
            </div>
        </div>
    </div>
    <div class="row ui-helper-clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>书名</th>
                    <th>作者</th>
                    <th>出版社</th>
                    <th>类别</th>
                    <th>借书日期</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="a" items="${books}">
                    <tr>
                        <td>${a.bookName}</td>
                        <td>${a.bookAuthor}</td>
                        <td>${a.bookConcern}</td>
                        <td>${a.bookInfo}</td>
                        <td>${a.lend_date}</td>
                        <td>
                            <a class="btn btn-warning"
                               href="${pageContext.request.contextPath}/tuihuan/${a.bookName}/${a.bookIsbn}/${a.bookInfo}/${a.bookAuthor}/${a.bookDate}/${a.bookConcern}">还书</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
        <div class="col-md-4 column">
            <%--            <a class="btn btn-primary" href="${pageContext.request.contextPath}/touserAction">回到主页面</a>--%>
        </div>
    </div>
</div>
</body>
</html>
